package com.questionnaire.service.impl;

import com.questionnaire.dao.QuestionDao;
import com.questionnaire.pojo.Question;
import com.questionnaire.service.QuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class QuestionServiceImpl implements QuestionService{

    @Autowired
    QuestionDao questionDao;

    @Override
    public List<Question> findByPaperId(String paperId) {
        return questionDao.findByPaperId(paperId);
    }

    @Override
    public Question findOneByPk(String id) {
        return questionDao.findOneByPk(id);
    }

    @Override
    public List<Question> findAllByPk(String pk) {
        return null;
    }
}
